package com.namecard.namecardapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wjh
 * @create 2024-08-27 17:19
 * 国家分类表(Country)实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Country {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "国家/州（省）",example = "united states")
    private String name;
    @ApiModelProperty(value = "父级id",example = "1")
    private Integer parentId;
    @ApiModelProperty(value = "类型，0表示国家，1表示州",example = "1")
    private Integer type;
}
